import { createMemoryHistory, createRouter } from 'vue-router'
import { AppRoutes } from './routes'
import { beforeEach,afterEach } from './guard'

const router = createRouter({
    history: createMemoryHistory(),
    routes: AppRoutes
})

router.beforeEach(beforeEach)

router.afterEach(afterEach)

export default router